libxc: fix vNUMA memory allocation
authorWei Liu <wei.liu2@citrix.com>
Mon, 17 Aug 2015 18:57:01 +0000 (19:57 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 21 Aug 2015 07:45:55 +0000 (08:45 +0100)
commit7b99717f62caeac08eea224a177cd28f047ac4b5
tree1f7f610a66e2053070f6be9da1bef08c64fbe7ba
parent51086e196ee6531f7cb45f23943dc8daf2d1527b
libxc: fix vNUMA memory allocation

Only 4KB allocation was using new_memflags.  We should use new_memflags
in for 2MB and 1GB allocation as well because that variable contains
node information.

Without this patch, when creating a HVM guest with vNUMA, because the
node information was not present in the flags passed to libxc, actual
memory allocation didn't comply with what user specified. With this
patch the behaviour is correct.

Reported-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Tested-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xc_hvm_build_x86.c